package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * AspectList generated by hbm2java
 */
@Entity
@Table(name="ASPECT_LIST"
    ,schema="SANKAR"
)
public class AspectList  implements java.io.Serializable {


     private BigDecimal aspectListId;
     private BigDecimal changedByUserId;
     private Date changedDate;
     private BigDecimal createdByUserId;
     private Date createdDate;
     private String optionDescription;
     private String optionDescriptionSp;
     private String optionValue;
    // @JsonIgnore
    // private Set<AspectListGroupConf> aspectListGroupConfs = new HashSet<AspectListGroupConf>(0);
     //@JsonIgnore
     //private Set<AspectListGroup> aspectListGroups = new HashSet<AspectListGroup>(0);

    public AspectList() {
         
    }

	
    
     @Id 
    
    @Column(name="ASPECT_LIST_ID", unique=true, nullable=false, scale=0)
    public BigDecimal getAspectListId() {
        return this.aspectListId;
    }
    
    public void setAspectListId(BigDecimal aspectListId) {
        this.aspectListId = aspectListId;
    }
    
    @Column(name="CHANGED_BY_USER_ID")
    public BigDecimal getChangedByUserId() {
        return this.changedByUserId;
    }
    
    public void setChangedByUserId(BigDecimal changedByUserId) {
        this.changedByUserId = changedByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CHANGED_DATE", length=7)
    public Date getChangedDate() {
        return this.changedDate;
    }
    
    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }
    
    @Column(name="CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }
    
    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CREATED_DATE", length=7)
    public Date getCreatedDate() {
        return this.createdDate;
    }
    
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
    
    @Column(name="OPTION_DESCRIPTION")
    public String getOptionDescription() {
        return this.optionDescription;
    }
    
    public void setOptionDescription(String optionDescription) {
        this.optionDescription = optionDescription;
    }
    
    @Column(name="OPTION_DESCRIPTION_SP")
    public String getOptionDescriptionSp() {
        return this.optionDescriptionSp;
    }
    
    public void setOptionDescriptionSp(String optionDescriptionSp) {
        this.optionDescriptionSp = optionDescriptionSp;
    }
    
    @Column(name="OPTION_VALUE")
    public String getOptionValue() {
        return this.optionValue;
    }
    
    public void setOptionValue(String optionValue) {
        this.optionValue = optionValue;
    }
  
//    @Transient
//    @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="id.aspectList")
//    public Set<AspectListGroupConf> getAspectListGroupConfs() {
//        return this.aspectListGroupConfs;
//    }
//    
//    public void setAspectListGroupConfs(Set<AspectListGroupConf> aspectListGroupConfs) {
//        this.aspectListGroupConfs = aspectListGroupConfs;
//    }

    @Override
    public String toString() {
        return "AspectList{" + "aspectListId=" + aspectListId + ", changedByUserId=" + changedByUserId + ", changedDate=" + changedDate + ", createdByUserId=" + createdByUserId + ", createdDate=" + createdDate + ", optionDescription=" + optionDescription + ", optionDescriptionSp=" + optionDescriptionSp + ", optionValue=" + optionValue + '}';
    }

    
}


